<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script>
var str='adsf 03 23 vcxzxcv';
var re=/\d/;

alert(str.search(re));

</script>
</head>

<body>
</body>
</html>
